export default [
  {
    path: "/",
    name: "index",
    component: (resolve) => require(["@/views/Layout/Layout"], resolve),
    meta: {
      title: "HA",
    },
  },
  {
    path: "/404",
    name: "404",
    component: (resolve) => require(["@/views/Error/404"], resolve),
    meta: {
      title: "404",
    },
  },
  {
    path: "/login",
    name: "login",
    component: (resolve) => require(["@/views/Login"], resolve),
    meta: {
      title: "login",
    },
  },
  // 添加通配符路由来处理 history 模式的 404 问题
  {
    path: "*",
    redirect: "/404",
  },
];
